<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/6/24
 * Time: 9:13
 */

namespace app\common\model\user;


use app\common\model\TimeModel;

class WxUsers extends TimeModel
{
    protected $deleteTime = 'delete_time';

    public static function onAfterInsert($data){

        //$self = new static();
        $article = self::withoutGlobalScope()->find($data->id);

        $article->withoutGlobalScope()->where('id',$data->id)->save(['app_id'=>self::get_appId()]);

    }
}